<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        /*    let fn = (a, b) => {
               console.log(a + b)
           }
   
           fn(1, 2) */

        //简写

        //first
        /*    let fn = (a) => {
               console.log(a)
           }
   
           let fn = a => {
               console.log(a)
           } */

        //second
        /*   let fn = (a, b) => {
              console.log(a + b)
          }
  
          let fn = (a, b) => console.log(a + b) */

        //third
        let fn3 = (a, b) => ({ name: a })
        console.log(fn3('zs'))
    </script>
</body>

</html>